function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '',
      key: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '项目编号',
      align: 'center',
      scopedSlots: {customRender: 'pNumber'},
      dataIndex: 'pnumber',
    },
    {
      title: '项目名称',
      align: 'center',
      scopedSlots: {customRender: 'pName'},
      dataIndex: 'pname',
    },
    {
      title: '问题表现形式',
      align: 'center',
      scopedSlots: {customRender: 'wtms'},
      dataIndex: 'wtms',
    },
    {
      title: '定性',
      align: 'center',
      scopedSlots: {customRender: 'dingxing'},
      dataIndex: 'dingxing',
    },
    {
      title: '定性法规依据',
      align: 'center',
      scopedSlots: {customRender: 'dxyj'},
      dataIndex: 'dxyj',
    }
  ]
  return cols
}

export default columns